var mrPeng={
    name:'彭于晏',
    age:18,
    sex:"boy",
    helth:100,
    drink:function(){
        console.log('I am drinking');
        this.helth++;
    },
    smoke:function(){
        console.log('I am smoking');
        this.helth--;
    }
}


// console.log(mrPeng.name);  增
// mrPeng.like='章若楠'
// var abc='like'
// mrPeng[abc]='刘亦菲'

// mrPeng[age]=19  改   //此处age为变量，若没有定义age(var age = XXX)则会报错

// delete mrPeng.sex 删

mrPeng.smoke()
mrPeng.smoke()
mrPeng.drink()
console.log(mrPeng.helth);

